home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9065 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: hopper.acs.ryerson.ca!ron
  2. From: ron@acs.ryerson.ca (Ron Wigmore)
  3. Newsgroups: comp.lang.c
  4. Subject: Summarizing the "wtmp" file
  5. Date: 6 Mar 1996 22:31:35 GMT
  6. Organization: Ryerson Polytechnic University
  7. Message-ID: <4hl3o7$ig4@ns2.ryerson.ca>
  8. NNTP-Posting-Host: hopper.acs.ryerson.ca
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Would somebody already have a "C" program that reads the wtmp file each
  12. hour and produces a report on who has logged in during the last hour, from
  13. where they logged in from, and how many minutes they were logged in for?
  14.  
  15. I am putting together a set of accounting routines that will store various 
  16. account resource usage information in a database.  Aside from not knowing 
  17. "C", the data in the wtmp file can have different formats (eg. after a 
  18. server crash) and so it looks like it is a little too challenging for a 
  19. novice.  Since this seems like a program someone may have already written, 
  20. I am hoping that someone already has and could send me a copy of it.
  21.  
  22. We want to track connect time, modem usage, printing, quotas, 386 versus
  23. Pentium, etc., and the first one appears to be the hardest.
  24.  
  25. Ron,,,
  26.  
  27.